<?php
if($access_control != "924y39c9vns8r73"){ header("location:../"); }
echo "<script>bg_menu('m_vendas');</script>\n";
include_once "controle/financeiro.php";
?>
<h1>Financeiro</h1>
<form action="?pag=financ" method="post" id="form_mostra_status">
    Status
    <select name="mostra_status" onChange="mostra_status();">
        <option value="4" <?php if($mostra_status == 4){echo "selected";} ?>>Ativo e Atrasado</option>
        <option value="2" <?php if($mostra_status == 2){echo "selected";} ?>>Ativo</option>
        <option value="3" <?php if($mostra_status == 3){echo "selected";} ?>>Atrasado</option>
        <option value="1" <?php if($mostra_status == 1){echo "selected";} ?>>Pago</option>
        <option value="0" <?php if($mostra_status == 0){echo "selected";} ?>>Todos</option>
    </select>
    <input type="submit" value="Ok" name="btn_status">
</form>

<table class="tabela">
    <tr>
        <th>ID</th>
        <th>Cliente</th>
        <th>Vencimento</th>
        <th>Parcela</th>
        <th>Valor</th>
        <th>Total</th>
        <th>Forma de Pagamento</th>
        <th>Status</th>
        <th></th>
    </tr>
    <?=mostraFinanceiro($mostra_status)?>
</table>